/****************************************************************************
** Form implementation generated from reading ui file 'qimpenprefbase.ui'
**
** Created: Mon Feb 2 17:07:39 2009
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "qimpenprefbase.h"

#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qslider.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a QIMPenPrefBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
QIMPenPrefBase::QIMPenPrefBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "QIMPenPrefBase" );
    resize( 243, 280 ); 
    setCaption( tr( "Pen Input" ) );
    QIMPenPrefBaseLayout = new QVBoxLayout( this ); 
    QIMPenPrefBaseLayout->setSpacing( 6 );
    QIMPenPrefBaseLayout->setMargin( 11 );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setText( tr( "Multi-stroke character timeout:" ) );
    QIMPenPrefBaseLayout->addWidget( TextLabel1 );

    Layout2 = new QHBoxLayout; 
    Layout2->setSpacing( 6 );
    Layout2->setMargin( 0 );

    multiStrokeSlider = new QSlider( this, "multiStrokeSlider" );
    multiStrokeSlider->setMinValue( 250 );
    multiStrokeSlider->setMaxValue( 1000 );
    multiStrokeSlider->setLineStep( 10 );
    multiStrokeSlider->setPageStep( 50 );
    multiStrokeSlider->setValue( 500 );
    multiStrokeSlider->setOrientation( QSlider::Horizontal );
    multiStrokeSlider->setTickmarks( QSlider::Right );
    Layout2->addWidget( multiStrokeSlider );

    multiStrokeLabel = new QLabel( this, "multiStrokeLabel" );
    multiStrokeLabel->setMinimumSize( QSize( 45, 0 ) );
    multiStrokeLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
    Layout2->addWidget( multiStrokeLabel );
    QIMPenPrefBaseLayout->addLayout( Layout2 );

    inputStyle = new QButtonGroup( this, "inputStyle" );
    inputStyle->setTitle( tr( "Input areas displayed" ) );
    inputStyle->setColumnLayout(0, Qt::Vertical );
    inputStyle->layout()->setSpacing( 0 );
    inputStyle->layout()->setMargin( 0 );
    inputStyleLayout = new QVBoxLayout( inputStyle->layout() );
    inputStyleLayout->setAlignment( Qt::AlignTop );
    inputStyleLayout->setSpacing( 6 );
    inputStyleLayout->setMargin( 11 );

    bothCasesRadio = new QRadioButton( inputStyle, "bothCasesRadio" );
    bothCasesRadio->setText( tr( "Upper and lower case areas" ) );
    inputStyleLayout->addWidget( bothCasesRadio );

    toggleCaseRadio = new QRadioButton( inputStyle, "toggleCaseRadio" );
    toggleCaseRadio->setText( tr( "Lower case (toggle Upper case)" ) );
    inputStyleLayout->addWidget( toggleCaseRadio );
    QIMPenPrefBaseLayout->addWidget( inputStyle );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    QIMPenPrefBaseLayout->addItem( spacer );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
QIMPenPrefBase::~QIMPenPrefBase()
{
    // no need to delete child widgets, Qt does it all for us
}

